//公告状态
const status = {
    DRAFT: '草稿',
    PUSHED: '已推送',
    PUBLISHED: '已发布',
    PUBLISHED_UPDATE: '已发布',
}

//判断富文本输入框是否输入了内容
const emptyCont = `<!DOCTYPE html>
<html>
<head>
</head>
<body>

</body>
</html>`

const formRules = {
    title: [
        { required: true, message: '请输入公告标题', trigger: 'blur' },
        { max: 20, message: '最长输入20个文字', trigger: 'blur' },
    ],
    subTitle: [
        { required: true, message: '请输入副标题', trigger: 'blur' },
        { max: 100, message: '最长输入100个文字', trigger: 'blur' },
    ],
    cont: [
        { required: true, message: '请输入公告正文', trigger: 'blur' },
    ]
}


export {
    status,
    formRules,
    emptyCont,
}